package com.navi.loaddata.core.mesEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by ghost on 2018/3/15.
 */
//@Entity
//@Table(name = "SPC_DCMEASUREDATARESULT", schema = "P1RPTADM", catalog = "")
//@IdClass(SpcDcmeasuredataresultPK.class)
public class SpcDcResultData {
    private long dcdataid;
    private long seq;
    private String samplematerialname;
    private String itemname;
    private String sitename;
    private String sitetype;
    private String aliasitemname;
    private String datatype;
    private String result;
    private String eventname;
    private String timekey;
    private Date eventtime;
    private String eventuser;
    private String eventcomment;
    private Date updatetime;


    public long getDcdataid() {
        return dcdataid;
    }

    public void setDcdataid(long dcdataid) {
        this.dcdataid = dcdataid;
    }


    public long getSeq() {
        return seq;
    }

    public void setSeq(long seq) {
        this.seq = seq;
    }


    public String getSamplematerialname() {
        return samplematerialname;
    }

    public void setSamplematerialname(String samplematerialname) {
        this.samplematerialname = samplematerialname;
    }


    public String getItemname() {
        return itemname;
    }

    public void setItemname(String itemname) {
        this.itemname = itemname;
    }


    public String getSitename() {
        return sitename;
    }

    public void setSitename(String sitename) {
        this.sitename = sitename;
    }


    public String getSitetype() {
        return sitetype;
    }

    public void setSitetype(String sitetype) {
        this.sitetype = sitetype;
    }


    public String getAliasitemname() {
        return aliasitemname;
    }

    public void setAliasitemname(String aliasitemname) {
        this.aliasitemname = aliasitemname;
    }


    public String getDatatype() {
        return datatype;
    }

    public void setDatatype(String datatype) {
        this.datatype = datatype;
    }


    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }


    public String getEventname() {
        return eventname;
    }

    public void setEventname(String eventname) {
        this.eventname = eventname;
    }


    public String getTimekey() {
        return timekey;
    }

    public void setTimekey(String timekey) {
        this.timekey = timekey;
    }


    public Date getEventtime() {
        return eventtime;
    }

    public void setEventtime(Date eventtime) {
        this.eventtime = eventtime;
    }


    public String getEventuser() {
        return eventuser;
    }

    public void setEventuser(String eventuser) {
        this.eventuser = eventuser;
    }


    public String getEventcomment() {
        return eventcomment;
    }

    public void setEventcomment(String eventcomment) {
        this.eventcomment = eventcomment;
    }


    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

//    @Override
//    public boolean equals(Object o) {
//        if (this == o) return true;
//        if (o == null || getClass() != o.getClass()) return false;
//
//        SpcDcResultData that = (SpcDcResultData) o;
//
//        if (dcdataid != that.dcdataid) return false;
//        if (seq != that.seq) return false;
//        if (samplematerialname != null ? !samplematerialname.equals(that.samplematerialname) : that.samplematerialname != null)
//            return false;
//        if (itemname != null ? !itemname.equals(that.itemname) : that.itemname != null) return false;
//        if (sitename != null ? !sitename.equals(that.sitename) : that.sitename != null) return false;
//        if (sitetype != null ? !sitetype.equals(that.sitetype) : that.sitetype != null) return false;
//        if (aliasitemname != null ? !aliasitemname.equals(that.aliasitemname) : that.aliasitemname != null)
//            return false;
//        if (datatype != null ? !datatype.equals(that.datatype) : that.datatype != null) return false;
//        if (result != null ? !result.equals(that.result) : that.result != null) return false;
//        if (eventname != null ? !eventname.equals(that.eventname) : that.eventname != null) return false;
//        if (timekey != null ? !timekey.equals(that.timekey) : that.timekey != null) return false;
//        if (eventtime != null ? !eventtime.equals(that.eventtime) : that.eventtime != null) return false;
//        if (eventuser != null ? !eventuser.equals(that.eventuser) : that.eventuser != null) return false;
//        if (eventcomment != null ? !eventcomment.equals(that.eventcomment) : that.eventcomment != null) return false;
//        if (updatetime != null ? !updatetime.equals(that.updatetime) : that.updatetime != null) return false;
//
//        return true;
//    }
//
//    @Override
//    public int hashCode() {
//        int result1 = (int) (dcdataid ^ (dcdataid >>> 32));
//        result1 = 31 * result1 + (int) (seq ^ (seq >>> 32));
//        result1 = 31 * result1 + (samplematerialname != null ? samplematerialname.hashCode() : 0);
//        result1 = 31 * result1 + (itemname != null ? itemname.hashCode() : 0);
//        result1 = 31 * result1 + (sitename != null ? sitename.hashCode() : 0);
//        result1 = 31 * result1 + (sitetype != null ? sitetype.hashCode() : 0);
//        result1 = 31 * result1 + (aliasitemname != null ? aliasitemname.hashCode() : 0);
//        result1 = 31 * result1 + (datatype != null ? datatype.hashCode() : 0);
//        result1 = 31 * result1 + (result != null ? result.hashCode() : 0);
//        result1 = 31 * result1 + (eventname != null ? eventname.hashCode() : 0);
//        result1 = 31 * result1 + (timekey != null ? timekey.hashCode() : 0);
//        result1 = 31 * result1 + (eventtime != null ? eventtime.hashCode() : 0);
//        result1 = 31 * result1 + (eventuser != null ? eventuser.hashCode() : 0);
//        result1 = 31 * result1 + (eventcomment != null ? eventcomment.hashCode() : 0);
//        result1 = 31 * result1 + (updatetime != null ? updatetime.hashCode() : 0);
//        return result1;
//    }
}
